package com.sino.config.server.service.project;

import java.util.List;

import org.nutz.lang.util.NutMap;
import org.nutz.plugin.spring.boot.service.BaseService;
import org.springframework.stereotype.Service;

import com.sino.config.server.ConfigServerApplication.Consts.InstalledRole;
import com.sino.config.server.bean.project.ApplicationMember;

/**
 * @author kerbores
 *
 */
@Service
public class ApplicationMemberService extends BaseService<ApplicationMember> {

	/**
	 * 项目经理信息
	 * 
	 * @param applicationId
	 * @return
	 */
	public List<NutMap> selectManagerInfo(long applicationId) {
		return searchAsMap(
				create("select.manager.info")
						.setParam("roleName", InstalledRole.MANAGER.getName())
						.setParam("applicationId", applicationId));
	}
}
